import React from 'react';
import List from './List';
import { connect } from 'react-redux';
const Listbar = (props) => {
    return (
        <div>
            hhh
            {props.isList && <List/>}
        </div>
    );
}

export default connect((state)=>{
    return {
        isList:state.ListReducer.isList
    }
})(Listbar);
